package com.zenith.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zenith.edu.po.domain.EduCertificate;
import com.zenith.edu.po.dto.EduCertificateDTO;
import com.zenith.edu.po.vo.EduCertificateVO;

import java.util.List;

public interface EduCertificateService extends IService<EduCertificate> {
    
    /**
     * 创建证书
     * @param dto 证书DTO
     * @return 证书VO
     */
    EduCertificateVO createCertificate(EduCertificateDTO dto);
    
    /**
     * 根据ID获取证书详情
     * @param id 证书ID
     * @return 证书VO
     */
    EduCertificateVO getCertificateById(Long id);
    
    /**
     * 更新证书信息
     * @param dto 证书DTO
     * @return 证书VO
     */
    EduCertificateVO updateCertificate(EduCertificateDTO dto);
    
    /**
     * 删除指定证书
     * @param id 证书ID
     * @return 是否删除成功
     */
    boolean deleteCertificate(Long id);
    
    /**
     * 获取证书列表
     * @return 证书VO列表
     */
    List<EduCertificateVO> getCertificateList();
}